package com.bicon.base.data.pojo.botu;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 关注表
 * </p>
 *
 * @author zhoutyianqi
 * @since 2018-07-25
 */
public class Attention extends Model<Attention> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    private String id;
    /**
     * 用户id
     */
    @TableField("user_id")
    private String userId;
    /**
     * 商品id
     */
    @TableField("product_id")
    private String productId;
    /**
     * 逻辑删除
     */
    @TableField("logic_delete")
    private String logicDelete;
    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 更新时间
     */
    @TableField("update_date")
    private Date updateDate;
    /**
     * SKU_id(库存id)
     */
    @TableField("product_repertory_id")
    private String productRepertoryId;
    /**
     * 关注时价格
     */
    @TableField("attention_price")
    private BigDecimal attentionPrice;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getLogicDelete() {
        return logicDelete;
    }

    public void setLogicDelete(String logicDelete) {
        this.logicDelete = logicDelete;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getProductRepertoryId() {
        return productRepertoryId;
    }

    public void setProductRepertoryId(String productRepertoryId) {
        this.productRepertoryId = productRepertoryId;
    }

    public BigDecimal getAttentionPrice() {
        return attentionPrice;
    }

    public void setAttentionPrice(BigDecimal attentionPrice) {
        this.attentionPrice = attentionPrice;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Attention{" +
        "id=" + id +
        ", userId=" + userId +
        ", productId=" + productId +
        ", logicDelete=" + logicDelete +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        ", productRepertoryId=" + productRepertoryId +
        ", attentionPrice=" + attentionPrice +
        "}";
    }
}
